package generic;

import java.util.List;
import java.util.Map;

/**
 * @author ChangLiang
 * @date 2021/2/1
 */
public class LimitsOfInference {

    static void f(Map<Person, List<? extends Pet>> petPeople) {
        petPeople.put(null, null);
        System.out.println(petPeople.keySet().size());
    }

    public static void main(String[] args) {
         f(New.map()); // Does not compile  这里是可以编译的
    }
}
